翻訳と辞書
Words near each other
・ CGS Patuakhali
・ CGS Petrel
・ CGS Rangamati
・ CGS Simcoe (1909)
・ CGS Vigilant
・ CGS-12066A
・ CGS-13767
・ CGS-15943
・ CFYX-FM
・ CFZ
・ CFZM
・ CFZN-FM
・ CFZY-FM
・ CFZZ-FM
・ CG
Cg (programming language)
・ CG 4
・ CG Artist
・ CG Puigcerdà
・ CG Railway
・ CG Supervisor
・ CG suppression
・ CG(X)
・ CG-17
・ CG-20
・ CG634
・ CGA
・ CGA (Advanced Management Centre)
・ CGA Foxhunter Chase
・ CGAC


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Cg (programming language) : ウィキペディア英語版
Cg (programming language)
Cg (short for C for Graphics) is a high-level shading language developed by Nvidia in close collaboration with Microsoft for programming vertex and pixel shaders. Cg is based on the C programming language and although they share the same syntax, some features of C were modified and new data types were added to make Cg more suitable for programming graphics processing units. This language is only suitable for GPU programming and is not a general programming language. The Cg compiler outputs DirectX or OpenGL shader programs. Since 2012, Cg is deprecated, with no additional development or support available.〔https://developer.nvidia.com/cg-toolkit〕
==Background==
Due to technical advances in graphics hardware, some areas of 3D graphics programming have become quite complex. To simplify the process, new features were added to graphics cards, including the ability to modify their rendering pipelines using vertex and pixel shaders.
In the beginning, vertex and pixel shaders were programmed at a very low level with only the assembly language of the graphics processing unit. Although using the assembly language gave the programmer complete control over code and flexibility, it was fairly hard to use. A portable, higher level language for programming the GPU was needed, so Cg was created to overcome these problems and make shader development easier.
Some of the benefits of using Cg over assembly are:
* High level code is easier to learn, program, read, and maintain than assembly code.
* Cg code is portable to a wide range of hardware and platforms, unlike assembly code, which usually depends on hardware and the platforms it's written for.
* The Cg compiler can optimize code and do lower level tasks automatically, which are hard to do and error prone in assembly.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Cg (programming language)」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.